﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class LotMaster : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetTable();
        GridView1.DataBind();

    }
    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();


        dtbl1.Columns.Add("Lot No", typeof(string));
        dtbl1.Columns.Add("Dealer", typeof(string));
        dtbl1.Columns.Add("Received Date", typeof(string));
  

        dtbl1.Rows.Add("L000100", "Dealer1","28-sep-2012");
        dtbl1.Rows.Add("L000102", "Dealer2", "14-oct-2012");
        dtbl1.Rows.Add("L000103", "Dealer3", "20-jan-2012");
        return dtbl1;
    }
}
